package cn.com.taiji.pos.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 顾客信息
 * </p>
 *
 * @author
 * @since 2021-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CardCustomer implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("ID")
    private String id;

    /**
     * 所属一级部门
     */
    @TableField("COMPANY_ID")
    private String companyId;

    /**
     * 所属二级部门
     */
    @TableField("DEPARTMENT_ID")
    private String departmentId;

    /**
     * 顾客类型
     */
    @TableField("CUSTOMER_TYPE_ID")
    private String customerTypeId;

    /**
     * 顾客姓名
     */
    @TableField("NAME")
    private String name;

    /**
     * 顾客编号
     */
    @TableField("CUSTOMER_NO")
    private String customerNo;

    /**
     * 性别(1:男(默认)0:女)
     */
    @TableField("MALE")
    private String male;

    /**
     * 出生日期
     */
    @TableField("BIRTHDAY")
    private LocalDate birthday;

    /**
     * 邮箱
     */
    @TableField("EMAIL")
    private String email;

    /**
     * 手机
     */
    @TableField("MOBILE")
    private String mobile;

    /**
     * 电话
     */
    @TableField("PHONE")
    private String phone;

    /**
     * 饮食禁忌
     */
    @TableField("FOOD_TABOOS")
    private String foodTaboos;

    /**
     * 相关描述
     */
    @TableField("DESCRIPTION")
    private String description;

    @TableField("PASSWORD")
    private String password;

    /**
     * 状态(0:启用,1:停用,2:拉黑)
     */
    @TableField("STATUS")
    private String status;

    /**
     * 创建人
     */
    @TableField("CREATOR_ID")
    private String creatorId;

    /**
     * 创建人姓名
     */
    @TableField("CREATOR_NAME")
    private String creatorName;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @TableField("CERTIFICATE_NO")
    private String certificateNo;

    /**
     * 是否导出xml(0:否1:是)
     */
    @TableField("XML_OUT")
    private String xmlOut;

    @TableField("REMOTE")
    private String remote;

    private String bakCustomerType;

    @TableField("EMAIL_BAK")
    private String emailBak;

    @TableField("IS_EMAIL")
    private String isEmail;

    @TableField("photoName")
    private String photoName;

    @TableField("photoPath")
    private String photoPath;

    /**
     * 是否同步(0未同步1已同步）
     */
    @TableField("photoIsSynchro")
    private String photoIsSynchro;

    @TableField("openId")
    private String openId;

    @TableField("randomPassword")
    private String randomPassword;

    @TableField("isBinDing")
    private String isBinDing;

    @TableField("isSendQRCode")
    private String isSendQRCode;


}
